package com.newtouch.cq.security.config;

import com.newtouch.cq.security.token.GenericTokenResolveAble;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

@SuppressWarnings("serial")
@Configuration
class GenericTokenResolveConfigration implements Serializable {

	@Bean
	@ConditionalOnMissingBean
	public GenericTokenResolveAble tokenResolveAble() {
		return new GenericTokenResolveHeader();
	}

}
